﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace VelocityShop.Web.UI
{
    public partial class DefaultMaster : System.Web.UI.MasterPage
    {
        private string _category;

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void SetCurrentCategory(string category)
        {
            _category = category;
        }

        public string GetMenuClass(string category)
        {
            if (category.ToLower() == _category.ToLower())
                return "current";
            else
                return string.Empty;
        }
    }
}
